<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>添加号码归属信息</title>
<%@ include file="/common/meta.jsp"%>
<script src="${ctx}/js/jquery.js" type="text/javascript"></script>
<script src="${ctx}/js/jQselect.js" type="text/javascript"></script>
<script src="${ctx}/js/yj_main.js" type="text/javascript"></script>
<script src="${ctx}/js/address.select.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="${ctx}/css/right.css"
	media="screen" />
<script type="text/javascript">
	function initProvince() {
		initProvinceSelect(document.getElementById("province"));
		initSelected();
	}

	function changeProvince(selectedProvince) {
		initCitySelect(selectedProvince, document.getElementById("city"));
	}
	
	function initSelected() {
		var provinceSelect = document.getElementById("province");
		var citySelect = document.getElementById("city");
		
		provinceSelect.value = <c:out value="${province}"></c:out>;
		citySelect.value = <c:out value="${city}"></c:out>;
	}
</script>
<style type="text/css">
.prerequisite {
	color: red;
}
</style>
</head>

<body onload="initProvince()">
	<div class="clearfix"></div>
	<div class="yj_pannel2">
		<dl class="yj_top" style="background: url(../images/footer.gif)">
			<dt>
				<font color="#FFFFFF">添加号码归属信息</font>
			</dt>
			<dd></dd>
		</dl>
	</div>
	<div class="yj_center">
		<form id="mobileForm" name="mobileForm" method="post"
			action="${ctx}/mobile/manage">
			<table class="yj_table3">
				<tbody>
					<tr>
						<th width="15%">手机号码段(<span class="prerequisite">*</span>)：
						</th>
						<td width="35%"><input class="yj_othfld4"
							style="width: 130px;" id="" type="text" value="<c:out value="${mobileNumberSegment}"></c:out>" /></td>
						<th width="15%">手机卡类型:</th>
						<td width="35%"><input class="yj_othfld4"
							style="width: 130px;" id="" type="text" value="<c:out value="${phoneCardType}"></c:out>" /></td>
					</tr>
					<tr>
						<th>所属省份(<span class="prerequisite">*</span>)：
						</th>
						<td><select id="province" name="province"
							onchange="changeProvince(this.value)" class="selectbox">
								<option selected="selected" value="">请选择省份...</option>
						</select></td>
						<th>所属城市(<span class="prerequisite">*</span>)：
						</th>
						<td><select id="city" name="city" class="selectbox">
								<option selected="selected" value="">请选择城市...</option>
						</select></td>
					</tr>

				</tbody>
			</table>
		</form>
	</div>
	<br />
	<div style="width: 100%; height: 40px; text-align: center;">
		<a class="yj_button2">添加</a> <a class="yj_button2"
			onclick="window.location.href='./userMain.jsp'">取消</a>
	</div>
</body>
</html>
